package com.bz.xtcx.manager.service;

import com.bz.xtcx.manager.comom.XtcxException;
import com.bz.xtcx.manager.entity.CmsCategory;
import com.bz.xtcx.manager.entity.CmsContent;
import com.bz.xtcx.manager.vo.VoQueryCms;
import com.bz.xtcx.manager.vo.VoResponse;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ICmsCategoryService {

	public List<CmsCategory> getTreeByCondition(VoQueryCms query);
	
	public VoResponse add(CmsCategory e);
	
	public boolean del(String id);
	
	public VoResponse update(CmsCategory e);
	
	public CmsCategory getCategoryById(String id);
	
	public List<CmsCategory> getSubCategorys();
	
	public boolean onOrOffCategory(String id, int val);
	
	public VoResponse addOrUpdate(CmsContent e);
	
	public boolean delContent(String id);
	
	public PageInfo<CmsContent> getPageByCondition(VoQueryCms query, int pageNum, int pageSize, String orderBy) throws XtcxException;
	
	public CmsContent getContentById(String id);
	
	boolean check(String id);
	
	VoResponse check(List<String> ids);
	
	VoResponse reject(String id, String info);
	
	VoResponse onOrOff(String id, int val);
	
	VoResponse isTop(String id, int val);
	
	/**
	 * 获取我的代办；我发起的内容/活动申请；显示待审核数量及被驳回数量。
	 * @return
	 */
	public VoResponse myTaskDoingSum();
}
